﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace VectorEditor
{
    public static class SerializationUtility
    {
        public static void WritePoint(System.IO.BinaryWriter writer, PointF p)
        {
            writer.Write(p.X);
            writer.Write(p.Y);
        }

        public static PointF ReadPoint(System.IO.BinaryReader reader)
        {
            return new PointF(reader.ReadSingle(), reader.ReadSingle());
        }
    }
}
